package org.pyq.core;

import org.pyq.core.process.Process;

import java.lang.instrument.Instrumentation;
import java.util.ArrayList;
import java.util.List;

/**
 * @author pengYongQiang
 * @date 2022/1/7 18:13
 *
 * 管理
 */
public class ManagerFactory {

    private List<Process> processes = new ArrayList<>();
    private Instrumentation instrumentation;

    public ManagerFactory(Instrumentation instrumentation) {
        this.instrumentation = instrumentation;
    }

    public void addProcesses(Process process) {
        processes.add(process);
    }

    public List<Process> getProcesses() {
        return processes;
    }
}
